package com.woniuxy03;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-05-28 15:45
 * 玩家类
 */
public class User {
    //玩家姓名
    String name;
    //获胜次数
    int winCount;
    //玩家出拳
    public int show(){
        Scanner sc = new Scanner(System.in);
        System.out.println("输入1，2，3");
        return sc.nextInt();
    }
    //显示玩家出拳
    public String showName(int show){
        String showName=null;
        switch (show) {
            case 1:
                showName = "剪刀";
                break;
            case 2:
                showName = "石头";
                break;
            case 3:
                showName = "布";
                break;
        }
        return showName;
    }
}
